<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>InfGtkCertificateManager</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.0">
<link rel="home" href="index.html" title="libinfgtk-0.4 Reference Manual">
<link rel="up" href="ch01.html" title="libinfgtk API">
<link rel="prev" href="InfGtkBrowserModelSort.html" title="InfGtkBrowserModelSort">
<link rel="next" href="InfGtkCertificateDialog.html" title="InfGtkCertificateDialog">
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="InfGtkBrowserModelSort.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">libinfgtk-0.4 Reference Manual</th>
<td><a accesskey="n" href="InfGtkCertificateDialog.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#InfGtkCertificateManager.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#InfGtkCertificateManager.description" class="shortcut">Description</a>
                   | 
                  <a href="#InfGtkCertificateManager.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#InfGtkCertificateManager.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry" title="InfGtkCertificateManager">
<a name="InfGtkCertificateManager"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="InfGtkCertificateManager.top_of_page"></a>InfGtkCertificateManager</span></h2>
<p>InfGtkCertificateManager</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="InfGtkCertificateManager.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">                    <a class="link" href="InfGtkCertificateManager.html#InfGtkCertificateManager-struct" title="InfGtkCertificateManager">InfGtkCertificateManager</a>;
<a class="link" href="InfGtkCertificateManager.html" title="InfGtkCertificateManager"><span class="returnvalue">InfGtkCertificateManager</span></a> * <a class="link" href="InfGtkCertificateManager.html#inf-gtk-certificate-manager-new" title="inf_gtk_certificate_manager_new ()">inf_gtk_certificate_manager_new</a>
                                                        (<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk/unstable/GtkWindow.html"><span class="type">GtkWindow</span></a> *parent_window</code></em>,
                                                         <em class="parameter"><code><a href="../libinfinity-0.4/InfXmppManager.html"><span class="type">InfXmppManager</span></a> *xmpp_manager</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *trust_file</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *known_hosts_file</code></em>);
</pre>
</div>
<div class="refsect1" title="Object Hierarchy">
<a name="InfGtkCertificateManager.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----InfGtkCertificateManager
</pre>
</div>
<div class="refsect1" title="Properties">
<a name="InfGtkCertificateManager.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="InfGtkCertificateManager.html#InfGtkCertificateManager--known-hosts-file" title='The "known-hosts-file" property'>known-hosts-file</a>"         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write
  "<a class="link" href="InfGtkCertificateManager.html#InfGtkCertificateManager--parent-window" title='The "parent-window" property'>parent-window</a>"            <a href="http://library.gnome.org/devel/gtk/unstable/GtkWindow.html"><span class="type">GtkWindow</span></a>*            : Read / Write / Construct Only
  "<a class="link" href="InfGtkCertificateManager.html#InfGtkCertificateManager--trust-file" title='The "trust-file" property'>trust-file</a>"               <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write
  "<a class="link" href="InfGtkCertificateManager.html#InfGtkCertificateManager--xmpp-manager" title='The "xmpp-manager" property'>xmpp-manager</a>"             <a href="../libinfinity-0.4/InfXmppManager.html"><span class="type">InfXmppManager</span></a>*       : Read / Write / Construct Only
</pre>
</div>
<div class="refsect1" title="Description">
<a name="InfGtkCertificateManager.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" title="Details">
<a name="InfGtkCertificateManager.details"></a><h2>Details</h2>
<div class="refsect2" title="InfGtkCertificateManager">
<a name="InfGtkCertificateManager-struct"></a><h3>InfGtkCertificateManager</h3>
<pre class="programlisting">typedef struct _InfGtkCertificateManager InfGtkCertificateManager;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="inf_gtk_certificate_manager_new ()">
<a name="inf-gtk-certificate-manager-new"></a><h3>inf_gtk_certificate_manager_new ()</h3>
<pre class="programlisting"><a class="link" href="InfGtkCertificateManager.html" title="InfGtkCertificateManager"><span class="returnvalue">InfGtkCertificateManager</span></a> * inf_gtk_certificate_manager_new
                                                        (<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk/unstable/GtkWindow.html"><span class="type">GtkWindow</span></a> *parent_window</code></em>,
                                                         <em class="parameter"><code><a href="../libinfinity-0.4/InfXmppManager.html"><span class="type">InfXmppManager</span></a> *xmpp_manager</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *trust_file</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *known_hosts_file</code></em>);</pre>
<p>
Creates a new <a class="link" href="InfGtkCertificateManager.html" title="InfGtkCertificateManager"><span class="type">InfGtkCertificateManager</span></a>. For each new client-side
<a href="../libinfinity-0.4/InfXmppConnection.html"><span class="type">InfXmppConnection</span></a> in <em class="parameter"><code>xmpp_manager</code></em>, the certificate manager will verify
the server's certificate.
</p>
<p>
If the root CA of that certificate is contained in <em class="parameter"><code>trust_file</code></em>, or the
server certificate itself is known already (meaning it is contained in
<em class="parameter"><code>known_hosts_file</code></em>), then the certificate is accepted automatically.
Otherwise, the user is asked for approval. If the user approves the
certificate, then it is inserted into the <em class="parameter"><code>known_hosts_file</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>parent_window</code></em> :</span></p></td>
<td>The <a href="http://library.gnome.org/devel/gtk/unstable/GtkWindow.html"><span class="type">GtkWindow</span></a> to which to make certificate approval
dialogs transient to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xmpp_manager</code></em> :</span></p></td>
<td>The <a href="../libinfinity-0.4/InfXmppManager.html"><span class="type">InfXmppManager</span></a> whose <a href="../libinfinity-0.4/InfXmppConnection.html"><span class="type">InfXmppConnection</span></a>s to
manage the certificates for.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>trust_file</code></em> :</span></p></td>
<td>Path pointing to a file that contains trusted root CAs, or
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>known_hosts_file</code></em> :</span></p></td>
<td>Path pointing to a file that contains certificates of
known hosts, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A new <a class="link" href="InfGtkCertificateManager.html" title="InfGtkCertificateManager"><span class="type">InfGtkCertificateManager</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" title="Property Details">
<a name="InfGtkCertificateManager.property-details"></a><h2>Property Details</h2>
<div class="refsect2" title='The "known-hosts-file" property'>
<a name="InfGtkCertificateManager--known-hosts-file"></a><h3>The <code class="literal">"known-hosts-file"</code> property</h3>
<pre class="programlisting">  "known-hosts-file"         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write</pre>
<p>File containing certificates of known hosts.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "parent-window" property'>
<a name="InfGtkCertificateManager--parent-window"></a><h3>The <code class="literal">"parent-window"</code> property</h3>
<pre class="programlisting">  "parent-window"            <a href="http://library.gnome.org/devel/gtk/unstable/GtkWindow.html"><span class="type">GtkWindow</span></a>*            : Read / Write / Construct Only</pre>
<p>The parent window for certificate approval dialogs.</p>
</div>
<hr>
<div class="refsect2" title='The "trust-file" property'>
<a name="InfGtkCertificateManager--trust-file"></a><h3>The <code class="literal">"trust-file"</code> property</h3>
<pre class="programlisting">  "trust-file"               <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write</pre>
<p>File containing trusted root CAs.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" title='The "xmpp-manager" property'>
<a name="InfGtkCertificateManager--xmpp-manager"></a><h3>The <code class="literal">"xmpp-manager"</code> property</h3>
<pre class="programlisting">  "xmpp-manager"             <a href="../libinfinity-0.4/InfXmppManager.html"><span class="type">InfXmppManager</span></a>*       : Read / Write / Construct Only</pre>
<p>The XMPP manager of registered connections.</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.15</div>
</body>
</html>